﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Business;
namespace Presentation
{
    public partial class Form4 : Form
    {
        public Form4()
        {
            InitializeComponent();
        }

        private void buttonX1_Click(object sender, EventArgs e)
        {
            CrystalDecisions.CrystalReports.Engine.ReportDocument rpDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();           
            DataTable dt = new DataTable();
            dt = SachService.GetSachTable();            
            rpDoc.Load(@"..\..\" + "rpTon.rpt");
            rpDoc.SetDataSource(dt);
            rpViewBaoCaoTon.ReportSource = rpDoc;
        }
    }
}
